package com.ztgf.order.models.service.purchase;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.ztgf.order.models.bo.purchase.PurchaseCommodityLeaveMessageBO;
import com.ztgf.order.models.bo.purchase.PurchaseCommodityLeaveMessageSaveBO;
import com.ztgf.order.models.dto.purchase.PurchaseCommodityLeaveMessageDTO;
import com.ztgf.order.models.vo.purchase.PurchaseCommodityLeaveMessageAndReplyVO;

import java.util.List;

/**
 * 询价留言表服务
 *
 * @author mxli
 * @Date 2021-08-24 15:42:41
 */
public interface IPurchaseCommodityLeaveMessageService extends IService<PurchaseCommodityLeaveMessageDTO> {
    /**
     * PC端添加留言
     */
    boolean add(PurchaseCommodityLeaveMessageSaveBO saveBO);
    /**
     * PC端留言分页查询
     */
    Page<List<PurchaseCommodityLeaveMessageAndReplyVO>> queryByPageList(PurchaseCommodityLeaveMessageBO bo);
    /**
     * admin留言分页查询
     */
    Page<List<PurchaseCommodityLeaveMessageAndReplyVO>> queryByApiPageList(PurchaseCommodityLeaveMessageBO bo);
    /**
     * admin添加留言
     */
    boolean addByApi(PurchaseCommodityLeaveMessageSaveBO saveBO);
}
